<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gbk">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<title>维护经销商主表</title>
		<script type="text/javascript">
			var link;
			function dealerMod( link ) {
				var d = document.forms[0];
				d.action = link;
				d.submit();
			}

			function dealerDel( link ) {
				if (window.confirm("确认删除吗？")) {
					var d = document.forms[0];
					d.action = link;
					d.submit();
				} else {

				}
			}
		</script>
	</head>

	<body>
		<center>
			<h2>
				维护经销商
			</h2>
		</center>
		<div align="center">
			<form action="#" method="post">
				<table border="1" width="80%">
					<tr>
						<th>ID号</th>
						<th>编号</th>
						<th>全称</th>
						<th>简称</th>
						<th>级别</th>
						<th>折扣率</th>
						<th>地址</th>
						<th>邮政编码</th>
						<th>电话1</th>
						<th>电话2</th>
						<th>传真</th>
						<th>QQ号</th>
						<th>Email</th>
						<th>网址</th>
						<th>联系人</th>
						<th>联系人电话</th>
						<th>联系人手机</th>
						<th>联系人邮箱</th>
						<th>默认付款方式</th>
						<th>开户银行</th>
						<th>银行账号</th>
						<th>初次接触日期</th>
						<th>状态</th>
						<th>备注</th>

					</tr>
					<s:iterator value="#request.dealerList" id="dealer">
						<tr>
							<td>
								<s:property value="#dealer.cniid" />
							</td>
							<td>
								<s:property value="#dealer.cncdealercode" />
							</td>
							<td>
								<s:property value="#dealer.cncfullname" />
							</td>
							<td>
								<s:property value="#dealer.cncshortname" />
							</td>
							<td>
								<s:property value="#dealer.cnilevel" />
							</td>
							<td>
								<s:property value="#dealer.cndediscountrate" />
							</td>
							<td>
								<s:property value="#dealer.cncaddress" />
							</td>
							<td>
								<s:property value="#dealer.cncpc" />
							</td>
							<td>
								<s:property value="#dealer.cnctel1" />
							</td>
							<td>
								<s:property value="#dealer.cnctel2" />
							</td>
							<td>
								<s:property value="#dealer.cncfax" />
							</td>
							<td>
								<s:property value="#dealer.cncqqno" />
							</td>
							<td>
								<s:property value="#dealer.cncemail" />
							</td>
							<td>
								<s:property value="#dealer.cncwebsite" />
							</td>
							<td>
								<s:property value="#dealer.cnclinkmanname" />
							</td>
							<td>
								<s:property value="#dealer.cnclinkmantel" />
							</td>
							<td>
								<s:property value="#dealer.cnclinkmanmp" />
							</td>
							<td>
								<s:property value="#dealer.cnclinkmanemail" />
							</td>
							<td>
								<s:property value="#dealer.cinpaytype" />
							</td>
							<td>
								<s:property value="#dealer.cnibankid" />
							</td>
							<td>
								<s:property value="#dealer.cncbankaccount" />
							</td>
<td>
								<s:property value="#dealer.cndtfirstcontacttime" />
							</td>
							<td>
								<s:property value="#dealer.cnistatus" />
							</td>																					
							<td>
								<s:property value="#dealer.cncmemo" />
							</td>																					
														
							<td>
								<input type="button" value="修改" name="update" 	onclick="dealerMod('prepareModSupp?dealerId=<s:property value="#dealer.id" />')" />
								
								<input type="button" value="删除" name="delete" onclick="dealerDel('deleteSupp?dealerId=<s:property value="#dealer.id" />')" />
							</td>
						</tr>
					</s:iterator>
				</table>
			</form>

			<br/>
			<a href="prepareAddBuyInMain.action">新增</a>

		</div>
	</body>
</html>